#! /usr/bin/env python
# -*- coding: utf-8 -*-

import os

dir = 'D:\\workspace\\docker-workspace\\docker-mysql'

def getFileList(path, list=[]):
    if os.path.isdir(path):
        for item in os.listdir(path):
            getFileList(path+"\\" +item, list)
    if os.path.isfile:
            list.append(path)
            return
def test():
    res = []
    getFileList(dir, res)
    for item in res:
        print(item)

if (__name__ == '__main__'):
    test()